import { getPermission } from '@/utils/auth'
// console.log(JSON.parse(getPermission()))
export function permissionHandle(permission) {
  // console.log(JSON.parse(getPermission()))
  let result = false

  const showaction = getPermission() === undefined ? [] : JSON.parse(getPermission())
  showaction.forEach(val => {
    if (val.redunFrontUrl === permission) {
      // debugger
      result = true
      // return true
    }
  })
  return result
}
